/*
 * read_eyelink.cpp
 * Copyright Eduardo Aponte 2012
 * aponteeduardo@gmail.com
 */

#include "mex.h"
#include <string.h>
#include <eyelink.h>

void initEyeLink( void )
{         
    
    /* Initialize the EyeLink library */
    open_eyelink_system(0, "")
    
    /* Connects to the tracker */
    
    eyelink_open();  
    
}


void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
    /* Verify input arguments. */
    if(nrhs < 1 || nrhs > 2) {
        mexErrMsgTxt("Incorrect number of inputs");
    } else if(nlhs>1) {
        mexErrMsgTxt("Too many output arguments.");
    }
    
    if ( !mxIsNumeric(prhs[0]) ){
        mexErrMsgTxt("Input is not supported.");
    }
    
    /* Test if it's possible to open the eyelink using a mex function */

    return;
    
}

